<?xml version="1.0"?>
<xs:schema xmlns="http://schemas.microsoft.com/BizTalk/EDI/X12/2006" xmlns:d="urn:schemas-microsoft-com:datatypes" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:wpc="http://schemas.wpc-edi.com/X12/ISOMORPH/HIPAA/4010A1" xmlns:btsedi="http://schemas.microsoft.com/BizTalk/2005/EdiSchemaEditorExtension" xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions" targetNamespace="http://schemas.microsoft.com/BizTalk/EDI/X12/2006" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation xml:lang="en">  HIPAA Schema TS837Q2 - Washington Publishing Company (http://www.wpc-edi.com)</xs:documentation>
    <xs:appinfo>
      <schemaEditorExtension:schemaInfo namespaceAlias="btsedi" extensionClass="Microsoft.BizTalk.Edi.SchemaEditorExtension.EdiSchemaExtension" standardName="EDI" xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions" />
      <b:schemaInfo subdocument_break="yes" BiztalkServerEditorTool_Version="1.5" root_reference="X12_00401_837_D" displayroot_reference="X12_00401_837_D" version="3.0" standard="EDI" standards_version="00401" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" X12ConditionDesignator_Check="No" />
    </xs:appinfo>
  </xs:annotation>
  <xs:annotation>
    <xs:documentation xml:lang="en">copyright © Microsoft Corporation. All rights reserved.</xs:documentation>
  </xs:annotation>
  <xs:element name="X12_00401_837_D">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="postfix" count_ignore="yes" notes="Health Care Claim: Dental" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="ST">
          <xs:annotation>
            <xs:appinfo>
              <b:recordInfo notes="Transaction Set Header" />
            </xs:appinfo>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ST01">
                <xs:annotation>
                  <xs:appinfo>
                    <b:fieldInfo notes="Transaction Set Identifier Code_143" />
                  </xs:appinfo>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="X12_AN">
                    <xs:minLength value="3" />
                    <xs:maxLength value="3" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ST02">
                <xs:annotation>
                  <xs:appinfo>
                    <b:fieldInfo notes="Transaction Set Control Number_329" />
                  </xs:appinfo>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="X12_AN">
                    <xs:minLength value="4" />
                    <xs:maxLength value="9" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element minOccurs="0" name="ST03">
                <xs:annotation>
                  <xs:appinfo>
                    <b:fieldInfo notes="Implementation Convention Preference_1705" />
                  </xs:appinfo>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="X12_AN">
                    <xs:minLength value="1" />
                    <xs:maxLength value="9" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element minOccurs="1" maxOccurs="1" ref="BHT_BeginningOfHierarchicalTransaction_TS837Q2" />
        <xs:element minOccurs="1" maxOccurs="1" ref="REF_TransmissionTypeIdentification_TS837Q2" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_1000A_Loop" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_1000B_Loop" />
        <xs:element minOccurs="1" maxOccurs="unbounded" ref="TS837Q2_2000A_Loop" />
        <xs:element minOccurs="0" name="SE">
          <xs:annotation>
            <xs:appinfo>
              <b:recordInfo notes="Transaction Set Trailer" />
            </xs:appinfo>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SE01">
                <xs:annotation>
                  <xs:appinfo>
                    <b:fieldInfo notes="Number of Included Segments_96" />
                  </xs:appinfo>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="X12_AN">
                    <xs:minLength value="1" />
                    <xs:maxLength value="10" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SE02">
                <xs:annotation>
                  <xs:appinfo>
                    <b:fieldInfo notes="Transaction Set Control Number_329" />
                  </xs:appinfo>
                </xs:annotation>
                <xs:simpleType>
                  <xs:restriction base="X12_AN">
                    <xs:minLength value="4" />
                    <xs:maxLength value="9" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="BHT_BeginningOfHierarchicalTransaction_TS837Q2">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="BHT_BeginningOfHierarchicalTransaction_TS837Q2" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Beginning of Hierarchical Transaction" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="BHT01__HierarchicalStructureCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1005" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0019" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="BHT02__TransactionSetPurposeCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="353" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="00" />
              <xs:enumeration value="18" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="BHT03__OriginatorApplicationTransactionIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="BHT04__TransactionSetCreationDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="DT" format="YYYYMMDD" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_DT">
              <xs:minLength value="8" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="BHT05__TransactionSetCreationTime">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="TM" format="HHMMSSDD" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_TM">
              <xs:minLength value="4" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="BHT06__ClaimOrEncounterIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="640" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="CH" />
              <xs:enumeration value="RP" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_TransmissionTypeIdentification_TS837Q2">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_TransmissionTypeIdentification_TS837Q2" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Transmission Type Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__TransmissionTypeCode" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="87" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__TransmissionTypeCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" xmlns:wpc="http://schemas.wpc-edi.com/X12/ISOMORPH/HIPAA/4010A1" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U993">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_1000A_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_SubmitterName_TS837Q2_1000A/NM101__EntityIdentifierCode" trigger_value="41" notes="Submitter Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_SubmitterName_TS837Q2_1000A" />
        <xs:element minOccurs="1" maxOccurs="2" ref="PER_SubmitterContactInformation_TS837Q2_1000A" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_SubmitterName_TS837Q2_1000A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_SubmitterName_TS837Q2_1000A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Submitter Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__SubmitterIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="41" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__SubmitterLastOrOrganizationName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__SubmitterFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__SubmitterMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="46" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__SubmitterIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PER_SubmitterContactInformation_TS837Q2_1000A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PER_SubmitterContactInformation_TS837Q2_1000A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Submitter Contact Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PER03__CommunicationNumberQualifier" />
            <b:Subject name="PER04__CommunicationNumber" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PER05__CommunicationNumberQualifier" />
            <b:Subject name="PER06__CommunicationNumber" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PER07__CommunicationNumberQualifier" />
            <b:Subject name="PER08__CommunicationNumber" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PER01__ContactFunctionCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="366" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="IC" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PER02__SubmitterContactName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="60" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PER03__CommunicationNumberQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="365" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ED" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="FX" />
              <xs:enumeration value="TE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PER04__CommunicationNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER05__CommunicationNumberQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="365" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ED" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="EX" />
              <xs:enumeration value="FX" />
              <xs:enumeration value="TE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER06__CommunicationNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER07__CommunicationNumberQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="365" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ED" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="EX" />
              <xs:enumeration value="FX" />
              <xs:enumeration value="TE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER08__CommunicationNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="20" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_1000B_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_ReceiverName_TS837Q2_1000B/NM101__EntityIdentifierCode" trigger_value="40" notes="Receiver Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_ReceiverName_TS837Q2_1000B" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_ReceiverName_TS837Q2_1000B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_ReceiverName_TS837Q2_1000B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Receiver Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__ReceiverPrimaryIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="40" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__ReceiverName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="46" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__ReceiverPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2000A_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="HL_BillingPaytoProviderHierarchicalLevel_TS837Q2_2000A/HL03__HierarchicalLevelCode" trigger_value="20" notes="Billing/Pay-to Provider Hierarchical Level" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="HL_BillingPaytoProviderHierarchicalLevel_TS837Q2_2000A" />
        <xs:element minOccurs="0" maxOccurs="1" ref="PRV_BillingPaytoProviderSpecialtyInformation_TS837Q2_2000A" />
        <xs:element minOccurs="0" maxOccurs="1" ref="CUR_ForeignCurrencyInformation_TS837Q2_2000A" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_2010AA_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2010AB_Loop" />
        <xs:element minOccurs="1" maxOccurs="unbounded" ref="TS837Q2_2000B_Loop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="HL_BillingPaytoProviderHierarchicalLevel_TS837Q2_2000A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="HL_BillingPaytoProviderHierarchicalLevel_TS837Q2_2000A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Billing/Pay-to Provider Hierarchical Level" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="HL01__HierarchicalIDNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="12" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="HL02">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="12" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL03__HierarchicalLevelCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="735" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="20" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL04__HierarchicalChildCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="736" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PRV_BillingPaytoProviderSpecialtyInformation_TS837Q2_2000A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PRV_BillingPaytoProviderSpecialtyInformation_TS837Q2_2000A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Billing/Pay-to Provider Specialty Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PRV01__ProviderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1221" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="BI" />
              <xs:enumeration value="PT" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV02__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV03__ProviderTaxonomyCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV05_C035U994">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CUR_ForeignCurrencyInformation_TS837Q2_2000A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="CUR_ForeignCurrencyInformation_TS837Q2_2000A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Foreign Currency Information">
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR08">
            <b:Subject name="CUR07" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR09">
            <b:Subject name="CUR07" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CUR10">
            <b:Subject name="CUR11" />
            <b:Subject name="CUR12" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR11">
            <b:Subject name="CUR10" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR12">
            <b:Subject name="CUR10" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CUR13">
            <b:Subject name="CUR14" />
            <b:Subject name="CUR15" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR14">
            <b:Subject name="CUR13" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR15">
            <b:Subject name="CUR13" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CUR16">
            <b:Subject name="CUR17" />
            <b:Subject name="CUR18" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR17">
            <b:Subject name="CUR16" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR18">
            <b:Subject name="CUR16" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CUR19">
            <b:Subject name="CUR20" />
            <b:Subject name="CUR21" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR20">
            <b:Subject name="CUR19" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CUR21">
            <b:Subject name="CUR19" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CUR01__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="85" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CUR02__CurrencyCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="10" edi_datatype="R" justification="right" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR08">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="DT" format="YYYYMMDD" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_DT">
              <xs:minLength value="8" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="TM" format="HHMMSSDD" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_TM">
              <xs:minLength value="4" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR10">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR11">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="DT" format="YYYYMMDD" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_DT">
              <xs:minLength value="8" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR12">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="TM" format="HHMMSSDD" sequence_number="12">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_TM">
              <xs:minLength value="4" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR13">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="13">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR14">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="DT" format="YYYYMMDD" sequence_number="14">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_DT">
              <xs:minLength value="8" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR15">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="TM" format="HHMMSSDD" sequence_number="15">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_TM">
              <xs:minLength value="4" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR16">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="16">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR17">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="DT" format="YYYYMMDD" sequence_number="17">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_DT">
              <xs:minLength value="8" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR18">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="TM" format="HHMMSSDD" sequence_number="18">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_TM">
              <xs:minLength value="4" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR19">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="19">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR20">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="DT" format="YYYYMMDD" sequence_number="20">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_DT">
              <xs:minLength value="8" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CUR21">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="TM" format="HHMMSSDD" sequence_number="21">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_TM">
              <xs:minLength value="4" />
              <xs:maxLength value="8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2010AA_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_BillingProviderName_TS837Q2_2010AA/NM101__EntityIdentifierCode" trigger_value="85" notes="Billing Provider Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_BillingProviderName_TS837Q2_2010AA" />
        <xs:element minOccurs="1" maxOccurs="1" ref="N3_BillingProviderAddress_TS837Q2_2010AA" />
        <xs:element minOccurs="1" maxOccurs="1" ref="N4_BillingProviderCityStateZIPCode_TS837Q2_2010AA" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_BillingProviderSecondaryIdentificationNumber_TS837Q2_2010AA" />
        <xs:element minOccurs="0" maxOccurs="8" ref="REF_ClaimSubmitterCreditDebitCardInformation_TS837Q2_2010AA" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_BillingProviderName_TS837Q2_2010AA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_BillingProviderName_TS837Q2_2010AA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Billing Provider Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__BillingProviderIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="85" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__BillingProviderLastOrOrganizationalName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__BillingProviderFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__BillingProviderMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__BillingProviderNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__BillingProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N3_BillingProviderAddress_TS837Q2_2010AA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N3_BillingProviderAddress_TS837Q2_2010AA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Billing Provider Address" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N301__BillingProviderAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N302__BillingProviderAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N4_BillingProviderCityStateZIPCode_TS837Q2_2010AA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N4_BillingProviderCityStateZIPCode_TS837Q2_2010AA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Billing Provider City/State/ZIP Code">
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="N406">
            <b:Subject name="N405" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N401__BillingProviderCityName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N402__BillingProviderStateOrProvinceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N403__BillingProviderPostalZoneOrZIPCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="15" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N404__CountryCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N405">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N406">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_BillingProviderSecondaryIdentificationNumber_TS837Q2_2010AA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="0B 1A 1B 1C 1D 1E 1H EI G2 G5 LU SY TJ" tag_name="REF_BillingProviderSecondaryIdentificationNumber_TS837Q2_2010AA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Billing Provider Secondary Identification Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__BillingProviderAdditionalIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="EI" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="G5" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="SY" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__BillingProviderAdditionalIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U995">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_ClaimSubmitterCreditDebitCardInformation_TS837Q2_2010AA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="06 8U EM IJ RB ST TT" tag_name="REF_ClaimSubmitterCreditDebitCardInformation_TS837Q2_2010AA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Claim Submitter Credit/Debit Card Information">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__BillingProviderCreditCardIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="06" />
              <xs:enumeration value="8U" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="IJ" />
              <xs:enumeration value="RB" />
              <xs:enumeration value="ST" />
              <xs:enumeration value="TT" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__BillingProviderCreditCardIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U996">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2010AB_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_PaytoProvidersName_TS837Q2_2010AB/NM101__EntityIdentifierCode" trigger_value="87" notes="Pay-to Provider's Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_PaytoProvidersName_TS837Q2_2010AB" />
        <xs:element minOccurs="1" maxOccurs="1" ref="N3_PaytoProvidersAddress_TS837Q2_2010AB" />
        <xs:element minOccurs="1" maxOccurs="1" ref="N4_PaytoProviderCityStateZip_TS837Q2_2010AB" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_PaytoProviderSecondaryIdentificationNumber_TS837Q2_2010AB" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_PaytoProvidersName_TS837Q2_2010AB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_PaytoProvidersName_TS837Q2_2010AB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Pay-to Provider's Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__PaytoProviderIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="87" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__PaytoProviderLastOrOrganizationalName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__PaytoProviderFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__PaytoProviderMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__PaytoProviderNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__PaytoProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N3_PaytoProvidersAddress_TS837Q2_2010AB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N3_PaytoProvidersAddress_TS837Q2_2010AB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Pay-to Provider's Address" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N301__PaytoProviderAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N302__PaytoProviderAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N4_PaytoProviderCityStateZip_TS837Q2_2010AB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N4_PaytoProviderCityStateZip_TS837Q2_2010AB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Pay-to Provider City/State/Zip">
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="N406">
            <b:Subject name="N405" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N401__PaytoProviderCityName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N402__PaytoProviderStateCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N403__PaytoProviderPostalZoneOrZIPCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="15" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N404__CountryCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N405">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N406">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PaytoProviderSecondaryIdentificationNumber_TS837Q2_2010AB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_PaytoProviderSecondaryIdentificationNumber_TS837Q2_2010AB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Pay-to Provider Secondary Identification Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__PaytoProviderIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="EI" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="G5" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="SY" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__PaytoProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U997">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2000B_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="HL_SubscriberHierarchicalLevel_TS837Q2_2000B/HL03__HierarchicalLevelCode" trigger_value="22" notes="Subscriber Hierarchical Level" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="HL_SubscriberHierarchicalLevel_TS837Q2_2000B" />
        <xs:element minOccurs="1" maxOccurs="1" ref="SBR_SubscriberInformation_TS837Q2_2000B" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_2010BA_Loop" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_2010BB_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2010BC_Loop" />
        <xs:element minOccurs="0" maxOccurs="100" ref="TS837Q2_2300_Loop" />
        <xs:element minOccurs="0" maxOccurs="unbounded" ref="TS837Q2_2000C_Loop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="HL_SubscriberHierarchicalLevel_TS837Q2_2000B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="HL_SubscriberHierarchicalLevel_TS837Q2_2000B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Subscriber Hierarchical Level" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="HL01__HierarchicalIDNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="12" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL02__HierarchicalParentIDNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="12" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL03__HierarchicalLevelCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="735" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="22" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL04__HierarchicalChildCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="736" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0" />
              <xs:enumeration value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SBR_SubscriberInformation_TS837Q2_2000B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="SBR_SubscriberInformation_TS837Q2_2000B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Subscriber Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="SBR01__PayerResponsibilitySequenceNumberCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1138" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="P" />
              <xs:enumeration value="S" />
              <xs:enumeration value="T" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR02__IndividualRelationshipCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1069" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="18" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR03__InsuredGroupOrPolicyNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR04__InsuredGroupName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="60" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="SBR06__CoordinationOfBenefitsCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1143" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="6" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR08">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR09__ClaimFilingIndicatorCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1032" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="09" />
              <xs:enumeration value="11" />
              <xs:enumeration value="12" />
              <xs:enumeration value="13" />
              <xs:enumeration value="14" />
              <xs:enumeration value="15" />
              <xs:enumeration value="16" />
              <xs:enumeration value="17" />
              <xs:enumeration value="BL" />
              <xs:enumeration value="CH" />
              <xs:enumeration value="CI" />
              <xs:enumeration value="DS" />
              <xs:enumeration value="FI" />
              <xs:enumeration value="HM" />
              <xs:enumeration value="LM" />
              <xs:enumeration value="MB" />
              <xs:enumeration value="MC" />
              <xs:enumeration value="MH" />
              <xs:enumeration value="OF" />
              <xs:enumeration value="SA" />
              <xs:enumeration value="VA" />
              <xs:enumeration value="WC" />
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2010BA_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_SubscriberName_TS837Q2_2010BA/NM101__EntityIdentifierCode" trigger_value="IL" notes="Subscriber Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_SubscriberName_TS837Q2_2010BA" />
        <xs:element minOccurs="0" maxOccurs="1" ref="N3_SubscriberAddress_TS837Q2_2010BA" />
        <xs:element minOccurs="0" maxOccurs="1" ref="N4_SubscriberCityStateZIPCode_TS837Q2_2010BA" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DMG_SubscriberDemographicInformation_TS837Q2_2010BA" />
        <xs:element minOccurs="0" maxOccurs="4" ref="REF_SubscriberSecondaryIdentification_TS837Q2_2010BA" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_PropertyAndCasualtyClaimNumber_TS837Q2_2010BA" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_SubscriberName_TS837Q2_2010BA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_SubscriberName_TS837Q2_2010BA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Subscriber Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__SubscriberPrimaryIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="IL" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__SubscriberLastName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__SubscriberFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__SubscriberMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__SubscriberNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="MI" />
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM109__SubscriberPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N3_SubscriberAddress_TS837Q2_2010BA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N3_SubscriberAddress_TS837Q2_2010BA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Subscriber Address" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N301__SubscriberAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N302__SubscriberAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N4_SubscriberCityStateZIPCode_TS837Q2_2010BA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N4_SubscriberCityStateZIPCode_TS837Q2_2010BA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Subscriber City/State/ZIP Code">
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="N406">
            <b:Subject name="N405" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N401__SubscriberCityName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N402__SubscriberStateCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N403__SubscriberPostalZoneOrZIPCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="15" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N404__CountryCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N405">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N406">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DMG_SubscriberDemographicInformation_TS837Q2_2010BA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="DMG_SubscriberDemographicInformation_TS837Q2_2010BA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Subscriber Demographic Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="DMG01__DateTimePeriodFormatQualifier" />
            <b:Subject name="DMG02__SubscriberBirthDate" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DMG01__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DMG02__SubscriberBirthDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DMG03__SubscriberGenderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1068" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F" />
              <xs:enumeration value="M" />
              <xs:enumeration value="U" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG08">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_SubscriberSecondaryIdentification_TS837Q2_2010BA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="1W 23 IG SY" tag_name="REF_SubscriberSecondaryIdentification_TS837Q2_2010BA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Subscriber Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__SubscriberSupplementalIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1W" />
              <xs:enumeration value="23" />
              <xs:enumeration value="IG" />
              <xs:enumeration value="SY" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__SubscriberSupplementalIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U998">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PropertyAndCasualtyClaimNumber_TS837Q2_2010BA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="Y4" tag_name="REF_PropertyAndCasualtyClaimNumber_TS837Q2_2010BA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Property and Casualty Claim Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__PropertyCasualtyClaimNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="Y4" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__PropertyCasualtyClaimNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U999">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2010BB_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_PayerName_TS837Q2_2010BB/NM101__EntityIdentifierCode" trigger_value="PR" notes="Payer Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_PayerName_TS837Q2_2010BB" />
        <xs:element minOccurs="0" maxOccurs="1" ref="N3_PayerAddress_TS837Q2_2010BB" />
        <xs:element minOccurs="0" maxOccurs="1" ref="N4_PayerCityStateZIPCode_TS837Q2_2010BB" />
        <xs:element minOccurs="0" maxOccurs="3" ref="REF_PayerSecondaryIdentificationNumber_TS837Q2_2010BB" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_PayerName_TS837Q2_2010BB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_PayerName_TS837Q2_2010BB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Payer Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__PayerIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PR" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__PayerName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PI" />
              <xs:enumeration value="XV" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__PayerIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N3_PayerAddress_TS837Q2_2010BB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N3_PayerAddress_TS837Q2_2010BB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Payer Address" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N301__PayerAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N302__PayerAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N4_PayerCityStateZIPCode_TS837Q2_2010BB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N4_PayerCityStateZIPCode_TS837Q2_2010BB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Payer City/State/ZIP Code">
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="N406">
            <b:Subject name="N405" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N401__PayerCityName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N402__PayerStateCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N403__PayerPostalZoneOrZIPCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="15" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N404__PayerPostalZoneOrZIPCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N405">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N406">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PayerSecondaryIdentificationNumber_TS837Q2_2010BB">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_PayerSecondaryIdentificationNumber_TS837Q2_2010BB" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Payer Secondary Identification Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__PayerAdditionalIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="2U" />
              <xs:enumeration value="FY" />
              <xs:enumeration value="NF" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__PayerAdditionalIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1000">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2010BC_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_CreditDebitCardHolderName_TS837Q2_2010BC/NM101__LocationQualifier" trigger_value="AO" notes="Credit/Debit Card Holder Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_CreditDebitCardHolderName_TS837Q2_2010BC" />
        <xs:element minOccurs="0" maxOccurs="3" ref="REF_CreditDebitCardInformation_TS837Q2_2010BC" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_CreditDebitCardHolderName_TS837Q2_2010BC">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_CreditDebitCardHolderName_TS837Q2_2010BC" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Credit/Debit Card Holder Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__CreditOrDebitCardNumber" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__LocationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AO" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__LoopIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__CreditOrDebitCardHolderLastOrOrganizationalName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__CreditOrDebitCardHolderMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__CreditOrDebitCardHolderNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="MI" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__CreditOrDebitCardNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_CreditDebitCardInformation_TS837Q2_2010BC">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_CreditDebitCardInformation_TS837Q2_2010BC" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Credit/Debit Card Information">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__CreditOrDebitCardAuthorizationNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="BB" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__CreditOrDebitCardAuthorizationNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1001">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2000C_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="HL_PatientHierarchicalLevel_TS837Q2_2000C/HL03__HierarchicalLevelCode" trigger_value="23" notes="Patient Hierarchical Level" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="HL_PatientHierarchicalLevel_TS837Q2_2000C" />
        <xs:element minOccurs="1" maxOccurs="1" ref="PAT_PatientInformation_TS837Q2_2000C" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_2010CA_Loop" />
        <xs:element minOccurs="1" maxOccurs="100" ref="TS837Q2_2300_Loop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="HL_PatientHierarchicalLevel_TS837Q2_2000C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="HL_PatientHierarchicalLevel_TS837Q2_2000C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient Hierarchical Level" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="HL01__HierarchicalIDNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="12" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL02__HierarchicalParentIDNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="12" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL03__HierarchicalLevelCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="735" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="23" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="HL04__HierarchicalChildCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="736" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PAT_PatientInformation_TS837Q2_2000C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PAT_PatientInformation_TS837Q2_2000C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PAT05" />
            <b:Subject name="PAT06" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PAT07" />
            <b:Subject name="PAT08" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PAT01__IndividualRelationshipCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1069" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="01" />
              <xs:enumeration value="19" />
              <xs:enumeration value="20" />
              <xs:enumeration value="22" />
              <xs:enumeration value="29" />
              <xs:enumeration value="41" />
              <xs:enumeration value="53" />
              <xs:enumeration value="76" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT02">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT04__StudentStatusCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1220" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F" />
              <xs:enumeration value="N" />
              <xs:enumeration value="P" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT08">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="10" edi_datatype="R" justification="right" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PAT09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2010CA_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_PatientName_TS837Q2_2010CA/NM101__EntityIdentifierCode" trigger_value="QC" notes="Patient Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_PatientName_TS837Q2_2010CA" />
        <xs:element minOccurs="1" maxOccurs="1" ref="N3_PatientAddress_TS837Q2_2010CA" />
        <xs:element minOccurs="1" maxOccurs="1" ref="N4_PatientCityStateZIPCode_TS837Q2_2010CA" />
        <xs:element minOccurs="1" maxOccurs="1" ref="DMG_PatientDemographicInformation_TS837Q2_2010CA" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_PatientSecondaryIdentification_TS837Q2_2010CA" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_PropertyAndCasualtyClaimNumber_TS837Q2_2010CA" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_PatientName_TS837Q2_2010CA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_PatientName_TS837Q2_2010CA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__PatientPrimaryIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="QC" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__PatientLastName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM104__PatientFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__PatientMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__PatientNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="MI" />
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM109__PatientPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N3_PatientAddress_TS837Q2_2010CA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N3_PatientAddress_TS837Q2_2010CA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient Address" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N301__PatientAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N302__PatientAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N4_PatientCityStateZIPCode_TS837Q2_2010CA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N4_PatientCityStateZIPCode_TS837Q2_2010CA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient City/State/ZIP Code">
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="N406">
            <b:Subject name="N405" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N401__PatientCityName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N402__PatientStateCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N403__PatientPostalZoneOrZIPCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="15" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N404__CountryCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N405">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N406">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DMG_PatientDemographicInformation_TS837Q2_2010CA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="DMG_PatientDemographicInformation_TS837Q2_2010CA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient Demographic Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="DMG01__DateTimePeriodFormatQualifier" />
            <b:Subject name="DMG02__PatientBirthDate" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DMG01__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DMG02__PatientBirthDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DMG03__PatientGenderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1068" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F" />
              <xs:enumeration value="M" />
              <xs:enumeration value="U" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG08">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PatientSecondaryIdentification_TS837Q2_2010CA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="1W 23 IG SY" tag_name="REF_PatientSecondaryIdentification_TS837Q2_2010CA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__PatientSecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1W" />
              <xs:enumeration value="23" />
              <xs:enumeration value="IG" />
              <xs:enumeration value="SY" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__PatientSecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1002">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PropertyAndCasualtyClaimNumber_TS837Q2_2010CA">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="Y4" tag_name="REF_PropertyAndCasualtyClaimNumber_TS837Q2_2010CA" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Property and Casualty Claim Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__PropertyCasualtyClaimNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="Y4" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__PropertyCasualtyClaimNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1003">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2300_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" subdocument_creation_break="yes" notes="Claim Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="CLM_ClaimInformation_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateAdmission_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateDischarge_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateReferral_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateAccident_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="5" ref="DTP_DateAppliancePlacement_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateService_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DN1_OrthodonticTotalMonthsOfTreatment_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="35" ref="DN2_ToothStatus_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="10" ref="PWK_ClaimSupplementalInformation_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_PatientAmountPaid_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CreditDebitCardMaximumAmount_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_PredeterminationIdentification_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_ServiceAuthorizationExceptionCode_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_OriginalReferenceNumberICNDCN_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="2" ref="REF_PriorAuthorizationOrReferralNumber_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_ClaimIdentificationNumberForClearinghousesAndOtherTransmissionIntermediaries_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="20" ref="NTE_ClaimNote_TS837Q2_2300" />
        <xs:element minOccurs="0" maxOccurs="2" ref="TS837Q2_2310A_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2310B_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2310C_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2310D_Loop" />
        <xs:element minOccurs="0" maxOccurs="10" ref="TS837Q2_2320_Loop" />
        <xs:element minOccurs="1" maxOccurs="50" ref="TS837Q2_2400_Loop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CLM_ClaimInformation_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="CLM_ClaimInformation_TS837Q2_2300" structure="delimited" child_delimiter="default" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" notes="Claim Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CLM01__PatientAccountNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="38" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CLM02__TotalClaimChargeAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="1" maxOccurs="1" ref="CLM05_C023U1004_TS837Q2_2300" />
        <xs:element name="CLM06__ProviderOrSupplierSignatureIndicator">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1073" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="N" />
              <xs:enumeration value="Y" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM07__MedicareAssignmentCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1359" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="A" />
              <xs:enumeration value="C" />
              <xs:enumeration value="P" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CLM08__BenefitsAssignmentCertificationIndicator">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1073" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="N" />
              <xs:enumeration value="Y" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CLM09__ReleaseOfInformationCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1363" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="N" />
              <xs:enumeration value="Y" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM10">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="1" ref="CLM11_C024U1008_TS837Q2_2300" />
        <xs:element minOccurs="0" name="CLM12__SpecialProgramIndicator">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1366" sequence_number="12">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="01" />
              <xs:enumeration value="02" />
              <xs:enumeration value="03" />
              <xs:enumeration value="05" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM13">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="13">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM14">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="14">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM15">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="15">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM16">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="16">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM17">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="17">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM18">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="18">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM19__ClaimSubmissionReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1383" sequence_number="19">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PB" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM20__DelayReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1514" sequence_number="20">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
              <xs:enumeration value="3" />
              <xs:enumeration value="4" />
              <xs:enumeration value="5" />
              <xs:enumeration value="6" />
              <xs:enumeration value="7" />
              <xs:enumeration value="8" />
              <xs:enumeration value="9" />
              <xs:enumeration value="10" />
              <xs:enumeration value="11" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CLM05_C023U1004_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" child_delimiter="default" delimiter_type="inherit_subfield" field_order="infix" count_ignore="yes" sequence_number="05" notes="Health Care Service Location Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CLM05_C02301U1005_FacilityTypeCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="1">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM05_C02302U6036">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="2">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CLM05_C02303U1007_ClaimSubmissionReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="3">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CLM11_C024U1008_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" child_delimiter="default" delimiter_type="inherit_subfield" field_order="infix" count_ignore="yes" sequence_number="11" notes="Related Causes Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CLM11_C02401U1009_RelatedCausesCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1362" sequence_number="1">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AA" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="OA" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM11_C02402U1010_RelatedCausesCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1362" sequence_number="2">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AA" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="OA" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM11_C02403U1011_RelatedCausesCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1362" sequence_number="3">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AA" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="OA" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM11_C02404U1012_AutoAccidentStateOrProvinceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="4">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CLM11_C02405U1013_CountryCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="5">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateAdmission_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="435" tag_name="DTP_DateAdmission_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Admission" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="435" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__RelatedHospitalizationAdmissionDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateDischarge_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="096" tag_name="DTP_DateDischarge_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Discharge" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="096" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__DischargeOrEndOfCareDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateReferral_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="330" tag_name="DTP_DateReferral_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Referral" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="330" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__ReferralDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateAccident_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="439" tag_name="DTP_DateAccident_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Accident" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="439" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__AccidentDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateAppliancePlacement_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="452" tag_name="DTP_DateAppliancePlacement_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Appliance Placement" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="452" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__OrthodonticBandingDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateService_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="472" tag_name="DTP_DateService_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Service" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="472" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
              <xs:enumeration value="RD8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__ServiceDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DN1_OrthodonticTotalMonthsOfTreatment_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="DN1_OrthodonticTotalMonthsOfTreatment_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Orthodontic Total Months of Treatment" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="DN101__OrthodonticTreatmentMonthsCount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DN102__OrthodonticTreatmentMonthsRemainingCount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DN103__QuestionResponse">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1073" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="Y" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DN104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DN2_ToothStatus_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="DN2_ToothStatus_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Tooth Status">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="DN204" />
            <b:Subject name="DN205" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DN201__ToothNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DN202__ToothStatusCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1368" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="E" />
              <xs:enumeration value="I" />
              <xs:enumeration value="M" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DN203">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DN204">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DN205">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PWK_ClaimSupplementalInformation_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PWK_ClaimSupplementalInformation_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Claim Supplemental Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PWK05__IdentificationCodeQualifier" />
            <b:Subject name="PWK06__AttachmentControlNumber" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PWK01__AttachmentReportTypeCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="755" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="B4" />
              <xs:enumeration value="DA" />
              <xs:enumeration value="DG" />
              <xs:enumeration value="EB" />
              <xs:enumeration value="OB" />
              <xs:enumeration value="OZ" />
              <xs:enumeration value="P6" />
              <xs:enumeration value="RB" />
              <xs:enumeration value="RR" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PWK02__AttachmentTransmissionCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="756" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AA" />
              <xs:enumeration value="BM" />
              <xs:enumeration value="EL" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="FX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PWK03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="2" edi_datatype="N0" justification="right" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_N0" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PWK04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PWK05__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AC" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PWK06__AttachmentControlNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PWK07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PWK08_C002U1014">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PWK09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_PatientAmountPaid_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="F5" tag_name="AMT_PatientAmountPaid_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Patient Amount Paid" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__PatientAmountPaid">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CreditDebitCardMaximumAmount_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="MA" tag_name="AMT_CreditDebitCardMaximumAmount_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Credit/Debit Card - Maximum Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="MA" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__CreditOrDebitCardMaximumAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PredeterminationIdentification_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="G3" tag_name="REF_PredeterminationIdentification_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Predetermination Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__PredeterminationOfBenefitsIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="G3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__PredeterminationOfBenefitsIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1015">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_ServiceAuthorizationExceptionCode_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="4N" tag_name="REF_ServiceAuthorizationExceptionCode_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Service Authorization Exception Code">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__ServiceAuthorizationExceptionCode" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="4N" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__ServiceAuthorizationExceptionCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1016">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OriginalReferenceNumberICNDCN_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="F8" tag_name="REF_OriginalReferenceNumberICNDCN_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Original Reference Number (ICN/DCN)">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__ClaimOriginalReferenceNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__ClaimOriginalReferenceNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1017">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PriorAuthorizationOrReferralNumber_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="9F G1" tag_name="REF_PriorAuthorizationOrReferralNumber_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Prior Authorization or Referral Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__ReferralNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="9F" />
              <xs:enumeration value="G1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__ReferralNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1018">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_ClaimIdentificationNumberForClearinghousesAndOtherTransmissionIntermediaries_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="D9" tag_name="REF_ClaimIdentificationNumberForClearinghousesAndOtherTransmissionIntermediaries_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Claim Identification Number for Clearinghouses and Other Transmission &#xD;&#xA;Intermediaries">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__ValueAddedNetworkTraceNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D9" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__ValueAddedNetworkTraceNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1019">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NTE_ClaimNote_TS837Q2_2300">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NTE_ClaimNote_TS837Q2_2300" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Claim Note" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NTE01__NoteReferenceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="363" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ADD" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NTE02__ClaimNoteText">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2310A_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_ReferringProviderName_TS837Q2_2310A/NM101__EntityIdentifierCode" trigger_value="DN P3" notes="Referring Provider Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_ReferringProviderName_TS837Q2_2310A" />
        <xs:element minOccurs="0" maxOccurs="1" ref="PRV_ReferringProviderSpecialtyInformation_TS837Q2_2310A" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_ReferringProviderSecondaryIdentification_TS837Q2_2310A" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_ReferringProviderName_TS837Q2_2310A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_ReferringProviderName_TS837Q2_2310A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Referring Provider Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__ReferringProviderIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="DN" />
              <xs:enumeration value="P3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__ReferringProviderLastName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__ReferringProviderFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__ReferringProviderMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__ReferringProviderNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM109__ReferringProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PRV_ReferringProviderSpecialtyInformation_TS837Q2_2310A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PRV_ReferringProviderSpecialtyInformation_TS837Q2_2310A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Referring Provider Specialty Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PRV01__ProviderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1221" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="RF" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV02__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV03__ProviderTaxonomyCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV05_C035U1020">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_ReferringProviderSecondaryIdentification_TS837Q2_2310A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_ReferringProviderSecondaryIdentification_TS837Q2_2310A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Referring Provider Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__ReferringProviderSecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="EI" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="G5" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="SY" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__ReferringProviderSecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1021">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2310B_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_RenderingProviderName_TS837Q2_2310B/NM101__EntityIdentifierCode" trigger_value="82" notes="Rendering Provider Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_RenderingProviderName_TS837Q2_2310B" />
        <xs:element minOccurs="0" maxOccurs="1" ref="PRV_RenderingProviderSpecialtyInformation_TS837Q2_2310B" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_RenderingProviderSecondaryIdentification_TS837Q2_2310B" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_RenderingProviderName_TS837Q2_2310B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_RenderingProviderName_TS837Q2_2310B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Rendering Provider Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__RenderingProviderIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="82" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__RenderingProviderLastOrOrganizationName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__RenderingProviderFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__RenderingProviderMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__RenderingProviderNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__RenderingProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PRV_RenderingProviderSpecialtyInformation_TS837Q2_2310B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PRV_RenderingProviderSpecialtyInformation_TS837Q2_2310B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Rendering Provider Specialty Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PRV01__ProviderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1221" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV02__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV03__ProviderTaxonomyCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV05_C035U1022">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_RenderingProviderSecondaryIdentification_TS837Q2_2310B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_RenderingProviderSecondaryIdentification_TS837Q2_2310B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Rendering Provider Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__RenderingProviderSecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="EI" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="G5" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="SY" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__RenderingProviderSecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1023">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2310C_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_ServiceFacilityLocation_TS837Q2_2310C/NM101__EntityIdentifierCode" trigger_value="FA" notes="Service Facility Location" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_ServiceFacilityLocation_TS837Q2_2310C" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_ServiceFacilityLocationSecondaryIdentification_TS837Q2_2310C" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_ServiceFacilityLocation_TS837Q2_2310C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_ServiceFacilityLocation_TS837Q2_2310C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Service Facility Location">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__LaboratoryOrFacilityPrimaryIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="FA" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__LaboratoryOrFacilityName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__LaboratoryOrFacilityPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_ServiceFacilityLocationSecondaryIdentification_TS837Q2_2310C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_ServiceFacilityLocationSecondaryIdentification_TS837Q2_2310C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Service Facility Location Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__LaboratoryOrFacilitySecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1G" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="TJ" />
              <xs:enumeration value="X4" />
              <xs:enumeration value="X5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__LaboratoryOrFacilitySecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1024">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2310D_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_AssistantSurgeonName_TS837Q2_2310D/NM101__EntityIdentifierCode" trigger_value="DD" notes="Assistant Surgeon Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_AssistantSurgeonName_TS837Q2_2310D" />
        <xs:element minOccurs="0" maxOccurs="1" ref="PRV_AssistantSurgeonSpecialtyInformation_TS837Q2_2310D" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_AssistantSurgeonSecondaryIdentification_TS837Q2_2310D" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_AssistantSurgeonName_TS837Q2_2310D">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_AssistantSurgeonName_TS837Q2_2310D" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Assistant Surgeon Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__AssistantSurgeonIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="DD" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__AssistantSurgeonLastOrOrganizationName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__AssistantSurgeonFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__AssistantSurgeonMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__AssistantSurgeonNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__AssistantSurgeonIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PRV_AssistantSurgeonSpecialtyInformation_TS837Q2_2310D">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PRV_AssistantSurgeonSpecialtyInformation_TS837Q2_2310D" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Assistant Surgeon Specialty Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PRV01__ProviderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1221" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AS" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV02__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV03__ProviderTaxonomyCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV05_C035U6055">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_AssistantSurgeonSecondaryIdentification_TS837Q2_2310D">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_AssistantSurgeonSecondaryIdentification_TS837Q2_2310D" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Assistant Surgeon Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__AssistantSurgeonSecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="TJ" />
              <xs:enumeration value="X4" />
              <xs:enumeration value="X5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__AssistantSurgeonSecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U6056">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2320_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" notes="Other Subscriber Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="SBR_OtherSubscriberInformation_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="5" ref="CAS_ClaimAdjustment_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CoordinationOfBenefitsCOBPayerPaidAmount_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CoordinationOfBenefitsCOBApprovedAmount_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CoordinationOfBenefitsCOBAllowedAmount_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CoordinationOfBenefitsCOBPatientResponsibilityAmount_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CoordinationOfBenefitsCOBCoveredAmount_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CoordinationOfBenefitsCOBDiscountAmount_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_CoordinationOfBenefitsCOBPatientPaidAmount_TS837Q2_2320" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DMG_OtherInsuredDemographicInformation_TS837Q2_2320" />
        <xs:element minOccurs="1" maxOccurs="1" ref="OI_OtherInsuranceCoverageInformation_TS837Q2_2320" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_2330A_Loop" />
        <xs:element minOccurs="1" maxOccurs="1" ref="TS837Q2_2330B_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2330C_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2330D_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2330E_Loop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SBR_OtherSubscriberInformation_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="SBR_OtherSubscriberInformation_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Subscriber Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="SBR01__PayerResponsibilitySequenceNumberCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1138" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="P" />
              <xs:enumeration value="S" />
              <xs:enumeration value="T" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="SBR02__IndividualRelationshipCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1069" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="01" />
              <xs:enumeration value="18" />
              <xs:enumeration value="19" />
              <xs:enumeration value="20" />
              <xs:enumeration value="21" />
              <xs:enumeration value="22" />
              <xs:enumeration value="29" />
              <xs:enumeration value="76" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR03__InsuredGroupOrPolicyNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR04__PolicyName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="60" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR08">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SBR09__ClaimFilingIndicatorCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1032" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="09" />
              <xs:enumeration value="11" />
              <xs:enumeration value="12" />
              <xs:enumeration value="13" />
              <xs:enumeration value="14" />
              <xs:enumeration value="15" />
              <xs:enumeration value="16" />
              <xs:enumeration value="17" />
              <xs:enumeration value="BL" />
              <xs:enumeration value="CH" />
              <xs:enumeration value="CI" />
              <xs:enumeration value="DS" />
              <xs:enumeration value="FI" />
              <xs:enumeration value="HM" />
              <xs:enumeration value="LM" />
              <xs:enumeration value="MB" />
              <xs:enumeration value="MC" />
              <xs:enumeration value="MH" />
              <xs:enumeration value="OF" />
              <xs:enumeration value="SA" />
              <xs:enumeration value="VA" />
              <xs:enumeration value="WC" />
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CAS_ClaimAdjustment_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="CAS_ClaimAdjustment_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Claim Adjustment">
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS05__AdjustmentReasonCode">
            <b:Subject name="CAS06__AdjustmentAmount" />
            <b:Subject name="CAS07__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS06__AdjustmentAmount">
            <b:Subject name="CAS05__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS07__AdjustmentQuantity">
            <b:Subject name="CAS05__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS08__AdjustmentReasonCode">
            <b:Subject name="CAS09__AdjustmentAmount" />
            <b:Subject name="CAS10__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS09__AdjustmentAmount">
            <b:Subject name="CAS08__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS10__AdjustmentQuantity">
            <b:Subject name="CAS08__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS11__AdjustmentReasonCode">
            <b:Subject name="CAS12__AdjustmentAmount" />
            <b:Subject name="CAS13__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS12__AdjustmentAmount">
            <b:Subject name="CAS11__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS13__AdjustmentQuantity">
            <b:Subject name="CAS11__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS14__AdjustmentReasonCode">
            <b:Subject name="CAS15__AdjustmentAmount" />
            <b:Subject name="CAS16__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS15__AdjustmentAmount">
            <b:Subject name="CAS14__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS16__AdjustmentQuantity">
            <b:Subject name="CAS14__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS17__AdjustmentReasonCode">
            <b:Subject name="CAS18__AdjustmentAmount" />
            <b:Subject name="CAS19__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS18__AdjustmentAmount">
            <b:Subject name="CAS17__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS19__AdjustmentQuantity">
            <b:Subject name="CAS17__AdjustmentReasonCode" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CAS01__ClaimAdjustmentGroupCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1033" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="CO" />
              <xs:enumeration value="CR" />
              <xs:enumeration value="OA" />
              <xs:enumeration value="PI" />
              <xs:enumeration value="PR" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CAS02__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CAS03__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS04__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS05__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS06__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS07__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS08__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS09__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS10__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="10">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS11__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS12__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="12">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS13__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="13">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS14__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="14">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS15__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="15">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS16__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="16">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS17__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="17">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS18__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="18">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS19__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="19">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CoordinationOfBenefitsCOBPayerPaidAmount_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="D" tag_name="AMT_CoordinationOfBenefitsCOBPayerPaidAmount_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Coordination of Benefits (COB) Payer Paid Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__PayerPaidAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CoordinationOfBenefitsCOBApprovedAmount_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="AAE" tag_name="AMT_CoordinationOfBenefitsCOBApprovedAmount_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Coordination of Benefits (COB) Approved Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AAE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__ApprovedAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CoordinationOfBenefitsCOBAllowedAmount_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="B6" tag_name="AMT_CoordinationOfBenefitsCOBAllowedAmount_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Coordination of Benefits (COB) Allowed Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="B6" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__AllowedAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CoordinationOfBenefitsCOBPatientResponsibilityAmount_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="F2" tag_name="AMT_CoordinationOfBenefitsCOBPatientResponsibilityAmount_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Coordination of Benefits (COB) Patient Responsibility Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__PatientResponsibilityAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CoordinationOfBenefitsCOBCoveredAmount_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="AU" tag_name="AMT_CoordinationOfBenefitsCOBCoveredAmount_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Coordination of Benefits (COB) Covered Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AU" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__CoveredAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CoordinationOfBenefitsCOBDiscountAmount_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="D8" tag_name="AMT_CoordinationOfBenefitsCOBDiscountAmount_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Coordination of Benefits (COB) Discount Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__OtherPayerDiscountAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_CoordinationOfBenefitsCOBPatientPaidAmount_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="F5" tag_name="AMT_CoordinationOfBenefitsCOBPatientPaidAmount_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Coordination of Benefits (COB) Patient Paid Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__OtherPayerPatientPaidAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DMG_OtherInsuredDemographicInformation_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="DMG_OtherInsuredDemographicInformation_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Insured Demographic Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="DMG01__DateTimePeriodFormatQualifier" />
            <b:Subject name="DMG02__OtherInsuredBirthDate" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DMG01__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DMG02__OtherInsuredBirthDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DMG03__OtherInsuredGenderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1068" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="F" />
              <xs:enumeration value="M" />
              <xs:enumeration value="U" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG07">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG08">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="DMG09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="OI_OtherInsuranceCoverageInformation_TS837Q2_2320">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="OI_OtherInsuranceCoverageInformation_TS837Q2_2320" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Insurance Coverage Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" name="OI01">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="01">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="OI02">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="OI03__BenefitsAssignmentCertificationIndicator">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1073" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="N" />
              <xs:enumeration value="Y" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="OI04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="OI05">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="OI06__ReleaseOfInformationCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1363" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="N" />
              <xs:enumeration value="Y" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2330A_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_OtherSubscriberName_TS837Q2_2330A/NM101__EntityIdentifierCode" trigger_value="IL" notes="Other Subscriber Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_OtherSubscriberName_TS837Q2_2330A" />
        <xs:element minOccurs="0" maxOccurs="1" ref="N3_OtherSubscriberAddress_TS837Q2_2330A" />
        <xs:element minOccurs="0" maxOccurs="1" ref="N4_OtherSubscriberCityStateZipCode_TS837Q2_2330A" />
        <xs:element minOccurs="0" maxOccurs="3" ref="REF_OtherSubscriberSecondaryIdentification_TS837Q2_2330A" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_OtherSubscriberName_TS837Q2_2330A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_OtherSubscriberName_TS837Q2_2330A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Subscriber Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__OtherInsuredIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="IL" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__OtherInsuredLastName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM104__OtherInsuredFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__OtherInsuredMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__OtherInsuredNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="MI" />
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__OtherInsuredIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N3_OtherSubscriberAddress_TS837Q2_2330A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N3_OtherSubscriberAddress_TS837Q2_2330A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Subscriber Address" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N301__OtherInsuredAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N302__OtherInsuredAddressLine">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="55" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="N4_OtherSubscriberCityStateZipCode_TS837Q2_2330A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="N4_OtherSubscriberCityStateZipCode_TS837Q2_2330A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Subscriber City/State/Zip Code">
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="N406">
            <b:Subject name="N405" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="N401__OtherInsuredCityName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N402__OtherInsuredStateCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="N403__OtherInsuredPostalZoneOrZIPCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="15" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N404__CountryCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N405">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="N406">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherSubscriberSecondaryIdentification_TS837Q2_2330A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_OtherSubscriberSecondaryIdentification_TS837Q2_2330A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Subscriber Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherInsuredAdditionalIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1W" />
              <xs:enumeration value="23" />
              <xs:enumeration value="IG" />
              <xs:enumeration value="SY" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherInsuredAdditionalIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1025">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2330B_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_OtherPayerName_TS837Q2_2330B/NM101__EntityIdentifierCode" trigger_value="PR" notes="Other Payer Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_OtherPayerName_TS837Q2_2330B" />
        <xs:element minOccurs="0" maxOccurs="2" ref="PER_OtherPayerContactInformation_TS837Q2_2330B" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_ClaimPaidDate_TS837Q2_2330B" />
        <xs:element minOccurs="0" maxOccurs="3" ref="REF_OtherPayerSecondaryIdentifier_TS837Q2_2330B" />
        <xs:element minOccurs="0" maxOccurs="2" ref="REF_OtherPayerPriorAuthorizationOrReferralNumber_TS837Q2_2330B" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_OtherPayerClaimAdjustmentIndicator_TS837Q2_2330B" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_OtherPayerName_TS837Q2_2330B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_OtherPayerName_TS837Q2_2330B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__OtherPayerPrimaryIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PR" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__OtherPayerLastOrOrganizationName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PI" />
              <xs:enumeration value="XV" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__OtherPayerPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PER_OtherPayerContactInformation_TS837Q2_2330B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PER_OtherPayerContactInformation_TS837Q2_2330B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Contact Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PER03__CommunicationNumberQualifier" />
            <b:Subject name="PER04__CommunicationNumber" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PER05__CommunicationNumberQualifier" />
            <b:Subject name="PER06__CommunicationNumber" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="PER07__CommunicationNumberQualifier" />
            <b:Subject name="PER08__CommunicationNumber" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PER01__ContactFunctionCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="366" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="IC" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PER02__OtherPayerContactName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="60" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PER03__CommunicationNumberQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="365" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ED" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="FX" />
              <xs:enumeration value="TE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PER04__CommunicationNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER05__CommunicationNumberQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="365" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ED" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="EX" />
              <xs:enumeration value="FX" />
              <xs:enumeration value="TE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER06__CommunicationNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER07__CommunicationNumberQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="365" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ED" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="EX" />
              <xs:enumeration value="FX" />
              <xs:enumeration value="TE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER08__CommunicationNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PER09">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="20" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_ClaimPaidDate_TS837Q2_2330B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="DTP_ClaimPaidDate_TS837Q2_2330B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Claim Paid Date" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="573" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__DateClaimPaid">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherPayerSecondaryIdentifier_TS837Q2_2330B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="2U D8 F8 FY NF TJ" tag_name="REF_OtherPayerSecondaryIdentifier_TS837Q2_2330B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Secondary Identifier">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherPayerSecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="2U" />
              <xs:enumeration value="D8" />
              <xs:enumeration value="F8" />
              <xs:enumeration value="FY" />
              <xs:enumeration value="NF" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherPayerSecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1026">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherPayerPriorAuthorizationOrReferralNumber_TS837Q2_2330B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="9F G1" tag_name="REF_OtherPayerPriorAuthorizationOrReferralNumber_TS837Q2_2330B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Prior Authorization or Referral Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherPayerPriorAuthorizationOrReferralNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="9F" />
              <xs:enumeration value="G1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherPayerPriorAuthorizationOrReferralNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1027">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherPayerClaimAdjustmentIndicator_TS837Q2_2330B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="T4" tag_name="REF_OtherPayerClaimAdjustmentIndicator_TS837Q2_2330B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Claim Adjustment Indicator">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherPayerClaimAdjustmentIndicator" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="T4" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherPayerClaimAdjustmentIndicator">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1028">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2330C_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_OtherPayerPatientInformation_TS837Q2_2330C/NM101__EntityIdentifierCode" trigger_value="QC" notes="Other Payer Patient Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_OtherPayerPatientInformation_TS837Q2_2330C" />
        <xs:element minOccurs="0" maxOccurs="3" ref="REF_OtherPayerPatientIdentification_TS837Q2_2330C" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_OtherPayerPatientInformation_TS837Q2_2330C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_OtherPayerPatientInformation_TS837Q2_2330C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Patient Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__OtherPayerPatientPrimaryIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="QC" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM103">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="MI" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__OtherPayerPatientPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherPayerPatientIdentification_TS837Q2_2330C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_OtherPayerPatientIdentification_TS837Q2_2330C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Patient Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherPayerPatientPrimaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1W" />
              <xs:enumeration value="23" />
              <xs:enumeration value="IG" />
              <xs:enumeration value="SY" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherPayerPatientPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1029">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2330D_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_OtherPayerReferringProvider_TS837Q2_2330D/NM101__EntityIdentifierCode" trigger_value="DN P3" notes="Other Payer Referring Provider" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_OtherPayerReferringProvider_TS837Q2_2330D" />
        <xs:element minOccurs="0" maxOccurs="3" ref="REF_OtherPayerReferringProviderIdentification_TS837Q2_2330D" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_OtherPayerReferringProvider_TS837Q2_2330D">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_OtherPayerReferringProvider_TS837Q2_2330D" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Referring Provider">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108" />
            <b:Subject name="NM109" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="DN" />
              <xs:enumeration value="P3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM103">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM108">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM109">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherPayerReferringProviderIdentification_TS837Q2_2330D">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_OtherPayerReferringProviderIdentification_TS837Q2_2330D" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Referring Provider Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherPayerReferringProviderIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="EI" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="G5" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="SY" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherPayerReferringProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1030">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2330E_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_OtherPayerRenderingProvider_TS837Q2_2330E/NM101__EntityIdentifierCode" trigger_value="82" notes="Other Payer Rendering Provider" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_OtherPayerRenderingProvider_TS837Q2_2330E" />
        <xs:element minOccurs="0" maxOccurs="3" ref="REF_OtherPayerRenderingProviderIdentification_TS837Q2_2330E" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_OtherPayerRenderingProvider_TS837Q2_2330E">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_OtherPayerRenderingProvider_TS837Q2_2330E" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Rendering Provider">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108" />
            <b:Subject name="NM109" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="82" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM103">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM108">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM109">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherPayerRenderingProviderIdentification_TS837Q2_2330E">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_OtherPayerRenderingProviderIdentification_TS837Q2_2330E" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Rendering Provider Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherPayerRenderingProviderIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="EI" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="G5" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="SY" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherPayerRenderingProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1031">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2400_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" notes="Line Counter" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="50" ref="LX_LineCounter_TS837Q2_2400" />
        <xs:element minOccurs="1" maxOccurs="1" ref="SV3_DentalService_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="32" ref="TOO_ToothInformation_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateService_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DatePriorPlacement_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateAppliancePlacement_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="DTP_DateReplacement_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="5" ref="QTY_AnesthesiaQuantity_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_ServicePredeterminationIdentification_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="2" ref="REF_PriorAuthorizationOrReferralNumber_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_LineItemControlNumber_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_ApprovedAmount_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="AMT_SalesTaxAmount_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="10" ref="NTE_LineNote_TS837Q2_2400" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2420A_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2420B_Loop" />
        <xs:element minOccurs="0" maxOccurs="1" ref="TS837Q2_2420C_Loop" />
        <xs:element minOccurs="0" maxOccurs="25" ref="TS837Q2_2430_Loop" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="LX_LineCounter_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="LX_LineCounter_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Line Counter" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="LX01__AssignedNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="6" edi_datatype="N0" justification="right" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_N0" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SV3_DentalService_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="SV3_DentalService_TS837Q2_2400" structure="delimited" child_delimiter="default" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" notes="Dental Service" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="SV301_C003U1032_TS837Q2_2400" />
        <xs:element name="SV302__LineItemChargeAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV303__FacilityTypeCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="1" ref="SV304_C006U1040_TS837Q2_2400" />
        <xs:element minOccurs="0" name="SV305__ProsthesisCrownOrInlayCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1358" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="I" />
              <xs:enumeration value="R" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="SV306__ProcedureCount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV307">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV308">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="08">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV309">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="09">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV310">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV311_C004U1046">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SV301_C003U1032_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" child_delimiter="default" delimiter_type="inherit_subfield" field_order="infix" count_ignore="yes" sequence_number="01" notes="Composite Medical Procedure Identifier" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="SV301_C00301U1033_ProductOrServiceIDQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="235" sequence_number="1">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AD" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="SV301_C00302U1034_ProcedureCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="2">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="48" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV301_C00303U1035_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="3">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV301_C00304U1036_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="4">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV301_C00305U1037_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="5">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV301_C00306U1038_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="6">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV301_C00307U6071">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="7">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SV304_C006U1040_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" child_delimiter="default" delimiter_type="inherit_subfield" field_order="infix" count_ignore="yes" sequence_number="04" notes="Oral Cavity Designation" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="SV304_C00601U1041_OralCavityDesignationCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1361" sequence_number="1">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="00" />
              <xs:enumeration value="01" />
              <xs:enumeration value="02" />
              <xs:enumeration value="09" />
              <xs:enumeration value="10" />
              <xs:enumeration value="20" />
              <xs:enumeration value="30" />
              <xs:enumeration value="40" />
              <xs:enumeration value="L" />
              <xs:enumeration value="R" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV304_C00602U1042_OralCavityDesignationCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1361" sequence_number="2">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="00" />
              <xs:enumeration value="01" />
              <xs:enumeration value="02" />
              <xs:enumeration value="09" />
              <xs:enumeration value="10" />
              <xs:enumeration value="20" />
              <xs:enumeration value="30" />
              <xs:enumeration value="40" />
              <xs:enumeration value="L" />
              <xs:enumeration value="R" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV304_C00603U1043_OralCavityDesignationCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1361" sequence_number="3">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="00" />
              <xs:enumeration value="01" />
              <xs:enumeration value="02" />
              <xs:enumeration value="09" />
              <xs:enumeration value="10" />
              <xs:enumeration value="20" />
              <xs:enumeration value="30" />
              <xs:enumeration value="40" />
              <xs:enumeration value="L" />
              <xs:enumeration value="R" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV304_C00604U1044_OralCavityDesignationCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1361" sequence_number="4">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="00" />
              <xs:enumeration value="01" />
              <xs:enumeration value="02" />
              <xs:enumeration value="09" />
              <xs:enumeration value="10" />
              <xs:enumeration value="20" />
              <xs:enumeration value="30" />
              <xs:enumeration value="40" />
              <xs:enumeration value="L" />
              <xs:enumeration value="R" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SV304_C00605U1045_OralCavityDesignationCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1361" sequence_number="5">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="00" />
              <xs:enumeration value="01" />
              <xs:enumeration value="02" />
              <xs:enumeration value="09" />
              <xs:enumeration value="10" />
              <xs:enumeration value="20" />
              <xs:enumeration value="30" />
              <xs:enumeration value="40" />
              <xs:enumeration value="L" />
              <xs:enumeration value="R" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TOO_ToothInformation_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="TOO_ToothInformation_TS837Q2_2400" structure="delimited" child_delimiter="default" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" notes="Tooth Information">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="TOO01__CodeListQualifierCode" />
            <b:Subject name="TOO02__ToothCode" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="TOO01__CodeListQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1270" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="JP" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="TOO02__ToothCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" maxOccurs="1" ref="TOO03_C005U1047_TS837Q2_2400" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TOO03_C005U1047_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" child_delimiter="default" delimiter_type="inherit_subfield" field_order="infix" count_ignore="yes" sequence_number="03" notes="Tooth Surface" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="TOO03_C00501U1048_ToothSurfaceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1369" sequence_number="1">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="B" />
              <xs:enumeration value="D" />
              <xs:enumeration value="F" />
              <xs:enumeration value="I" />
              <xs:enumeration value="L" />
              <xs:enumeration value="M" />
              <xs:enumeration value="O" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="TOO03_C00502U1049_ToothSurfaceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1369" sequence_number="2">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="B" />
              <xs:enumeration value="D" />
              <xs:enumeration value="F" />
              <xs:enumeration value="I" />
              <xs:enumeration value="L" />
              <xs:enumeration value="M" />
              <xs:enumeration value="O" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="TOO03_C00503U1050_ToothSurfaceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1369" sequence_number="3">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="B" />
              <xs:enumeration value="D" />
              <xs:enumeration value="F" />
              <xs:enumeration value="I" />
              <xs:enumeration value="L" />
              <xs:enumeration value="M" />
              <xs:enumeration value="O" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="TOO03_C00504U1051_ToothSurfaceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1369" sequence_number="4">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="B" />
              <xs:enumeration value="D" />
              <xs:enumeration value="F" />
              <xs:enumeration value="I" />
              <xs:enumeration value="L" />
              <xs:enumeration value="M" />
              <xs:enumeration value="O" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="TOO03_C00505U1052_ToothSurfaceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1369" sequence_number="5">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="B" />
              <xs:enumeration value="D" />
              <xs:enumeration value="F" />
              <xs:enumeration value="I" />
              <xs:enumeration value="L" />
              <xs:enumeration value="M" />
              <xs:enumeration value="O" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateService_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="472" tag_name="DTP_DateService_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Service" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="472" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__ServiceDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DatePriorPlacement_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="441" tag_name="DTP_DatePriorPlacement_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Prior Placement" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="441" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__PriorPlacementDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateAppliancePlacement_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="452" tag_name="DTP_DateAppliancePlacement_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Appliance Placement" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="452" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__OrthodonticBandingDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_DateReplacement_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="DTP01__DateTimeQualifier" trigger_value="446" tag_name="DTP_DateReplacement_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Date - Replacement" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="446" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__ReplacementDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="QTY_AnesthesiaQuantity_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="QTY_AnesthesiaQuantity_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Anesthesia Quantity">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="QTY02__AnesthesiaUnitCount" />
            <b:Subject name="QTY04" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Exclusion">
            <b:Subject name="QTY02__AnesthesiaUnitCount" />
            <b:Subject name="QTY04" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="QTY01__QuantityQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="673" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="BF" />
              <xs:enumeration value="EM" />
              <xs:enumeration value="HM" />
              <xs:enumeration value="HO" />
              <xs:enumeration value="HP" />
              <xs:enumeration value="P3" />
              <xs:enumeration value="P4" />
              <xs:enumeration value="P5" />
              <xs:enumeration value="SG" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="QTY02__AnesthesiaUnitCount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="QTY03_C001U1053">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="QTY04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_ServicePredeterminationIdentification_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="G3" tag_name="REF_ServicePredeterminationIdentification_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Service Predetermination Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__PredeterminationOfBenefitsIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="G3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__PredeterminationOfBenefitsIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1054">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_PriorAuthorizationOrReferralNumber_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="9F G1" tag_name="REF_PriorAuthorizationOrReferralNumber_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Prior Authorization or Referral Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__ReferralNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="9F" />
              <xs:enumeration value="G1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__ReferralNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1055">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_LineItemControlNumber_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="REF01__ReferenceIdentificationQualifier" trigger_value="6R" tag_name="REF_LineItemControlNumber_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Line Item Control Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__LineItemControlNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="6R" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__LineItemControlNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1056">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_ApprovedAmount_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="AAE" tag_name="AMT_ApprovedAmount_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Approved Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AAE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__ApprovedAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="AMT_SalesTaxAmount_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo trigger_field="AMT01__AmountQualifierCode" trigger_value="T" tag_name="AMT_SalesTaxAmount_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Sales Tax Amount" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AMT01__AmountQualifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="522" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="T" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="AMT02__SalesTaxAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="AMT03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NTE_LineNote_TS837Q2_2400">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NTE_LineNote_TS837Q2_2400" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Line Note" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NTE01__NoteReferenceCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="363" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ADD" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NTE02__ClaimNoteText">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2420A_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_RenderingProviderName_TS837Q2_2420A/NM101__EntityIdentifierCode" trigger_value="82" notes="Rendering Provider Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_RenderingProviderName_TS837Q2_2420A" />
        <xs:element minOccurs="0" maxOccurs="1" ref="PRV_RenderingProviderSpecialtyInformation_TS837Q2_2420A" />
        <xs:element minOccurs="0" maxOccurs="5" ref="REF_RenderingProviderSecondaryIdentification_TS837Q2_2420A" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_RenderingProviderName_TS837Q2_2420A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_RenderingProviderName_TS837Q2_2420A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Rendering Provider Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__RenderingProviderIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="82" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__RenderingProviderLastOrOrganizationName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__RenderingProviderFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__RenderingProviderMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__RenderingProviderNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__RenderingProviderIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PRV_RenderingProviderSpecialtyInformation_TS837Q2_2420A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PRV_RenderingProviderSpecialtyInformation_TS837Q2_2420A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Rendering Provider Specialty Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PRV01__ProviderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1221" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PE" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV02__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV03__ProviderTaxonomyCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV05_C035U1057">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_RenderingProviderSecondaryIdentification_TS837Q2_2420A">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_RenderingProviderSecondaryIdentification_TS837Q2_2420A" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Rendering Provider Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__RenderingProviderSecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="EI" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="G5" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="SY" />
              <xs:enumeration value="TJ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__RenderingProviderSecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1058">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2420B_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_OtherPayerReferralNumber_TS837Q2_2420B/NM101__EntityIdentifierCode" trigger_value="PR" notes="Other Payer Referral Number" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_OtherPayerReferralNumber_TS837Q2_2420B" />
        <xs:element minOccurs="0" maxOccurs="2" ref="REF_OtherPayerPriorAuthorizationOrReferralNumber_TS837Q2_2420B" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_OtherPayerReferralNumber_TS837Q2_2420B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_OtherPayerReferralNumber_TS837Q2_2420B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Referral Number">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__OtherPayerReferralNumber" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PR" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__OtherPayerLastOrOrganizationName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="PI" />
              <xs:enumeration value="XV" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__OtherPayerReferralNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_OtherPayerPriorAuthorizationOrReferralNumber_TS837Q2_2420B">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_OtherPayerPriorAuthorizationOrReferralNumber_TS837Q2_2420B" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Other Payer Prior Authorization or Referral Number">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__OtherPayerPriorAuthorizationOrReferralNumber" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="9F" />
              <xs:enumeration value="G1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__OtherPayerPriorAuthorizationOrReferralNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U1059">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2420C_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" trigger_field="NM1_AssistantSurgeonName_TS837Q2_2420C/NM101__EntityIdentifierCode" trigger_value="DD" notes="Assistant Surgeon Name" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="NM1_AssistantSurgeonName_TS837Q2_2420C" />
        <xs:element minOccurs="0" maxOccurs="1" ref="PRV_AssistantSurgeonSpecialtyInformation_TS837Q2_2420C" />
        <xs:element minOccurs="0" maxOccurs="1" ref="REF_AssistantSurgeonSecondaryIdentification_TS837Q2_2420C" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="NM1_AssistantSurgeonName_TS837Q2_2420C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="NM1_AssistantSurgeonName_TS837Q2_2420C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Assistant Surgeon Name">
          <b:Rule subjects="X12ConditionDesignatorX_Paired">
            <b:Subject name="NM108__IdentificationCodeQualifier" />
            <b:Subject name="NM109__AssistantSurgeonIdentifier" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="NM111">
            <b:Subject name="NM110" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="NM101__EntityIdentifierCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="98" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="DD" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM102__EntityTypeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="1065" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="1" />
              <xs:enumeration value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM103__AssistantSurgeonLastOrOrganizationName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM104__AssistantSurgeonFirstName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM105__AssistantSurgeonMiddleName">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="25" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM106">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM107__AssistantSurgeonNameSuffix">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="10" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM108__IdentificationCodeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="66" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="24" />
              <xs:enumeration value="34" />
              <xs:enumeration value="XX" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="NM109__AssistantSurgeonIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM110">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="10">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="NM111">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="PRV_AssistantSurgeonSpecialtyInformation_TS837Q2_2420C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="PRV_AssistantSurgeonSpecialtyInformation_TS837Q2_2420C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Assistant Surgeon Specialty Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="PRV01__ProviderCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1221" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AS" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV02__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="PRV03__ProviderTaxonomyCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV05_C035U6092">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="05">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="PRV06">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" sequence_number="06">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="3" />
              <xs:maxLength value="3" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="REF_AssistantSurgeonSecondaryIdentification_TS837Q2_2420C">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="REF_AssistantSurgeonSecondaryIdentification_TS837Q2_2420C" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Assistant Surgeon Secondary Identification">
          <b:Rule subjects="X12ConditionDesignatorX_Required">
            <b:Subject name="REF02__AssistantSurgeonSecondaryIdentifier" />
            <b:Subject name="REF03" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="REF01__ReferenceIdentificationQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="128" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="0B" />
              <xs:enumeration value="1A" />
              <xs:enumeration value="1B" />
              <xs:enumeration value="1C" />
              <xs:enumeration value="1D" />
              <xs:enumeration value="1E" />
              <xs:enumeration value="1H" />
              <xs:enumeration value="G2" />
              <xs:enumeration value="LU" />
              <xs:enumeration value="TJ" />
              <xs:enumeration value="X4" />
              <xs:enumeration value="X5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="REF02__AssistantSurgeonSecondaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="30" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF03">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="REF04_C040U6093">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="1" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="TS837Q2_2430_Loop">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" delimiter_type="inherit_record" field_order="infix" count_ignore="yes" child_delimiter="default" notes="Line Adjudication Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="1" maxOccurs="1" ref="SVD_LineAdjudicationInformation_TS837Q2_2430" />
        <xs:element minOccurs="0" maxOccurs="99" ref="CAS_ServiceAdjustment_TS837Q2_2430" />
        <xs:element minOccurs="1" maxOccurs="1" ref="DTP_LineAdjudicationDate_TS837Q2_2430" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SVD_LineAdjudicationInformation_TS837Q2_2430">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="SVD_LineAdjudicationInformation_TS837Q2_2430" structure="delimited" child_delimiter="default" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" notes="Line Adjudication Information" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="SVD01__OtherPayerPrimaryIdentifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="SVD02__ServiceLinePaidAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="1" maxOccurs="1" ref="SVD03_C003U1060_TS837Q2_2430" />
        <xs:element minOccurs="0" name="SVD04">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="04">
              </b:fieldInfo>
              <wpc:Info NotUsed="true" />
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="48" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="SVD05__PaidServiceUnitCount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SVD06__BundledOrUnbundledLineNumber">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="6" edi_datatype="N0" justification="right" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_N0" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="SVD03_C003U1060_TS837Q2_2430">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo structure="delimited" child_delimiter="default" delimiter_type="inherit_subfield" field_order="infix" count_ignore="yes" sequence_number="03" notes="Composite Medical Procedure Identifier" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="SVD03_C00301U1061_ProductOrServiceIDQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="235" sequence_number="1">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="AD" />
              <xs:enumeration value="ZZ" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="SVD03_C00302U1062_ProcedureCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="2">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="48" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SVD03_C00303U1063_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="3">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SVD03_C00304U1064_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="4">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SVD03_C00305U1065_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="5">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SVD03_C00306U1066_ProcedureModifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" sequence_number="6">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="2" />
              <xs:maxLength value="2" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="SVD03_C00307U1067_ProcedureCodeDescription">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="7">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="80" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="CAS_ServiceAdjustment_TS837Q2_2430">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="CAS_ServiceAdjustment_TS837Q2_2430" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Service Adjustment">
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS05__AdjustmentReasonCode">
            <b:Subject name="CAS06__AdjustmentAmount" />
            <b:Subject name="CAS07__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS06__AdjustmentAmount">
            <b:Subject name="CAS05__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS07__AdjustmentQuantity">
            <b:Subject name="CAS05__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS08__AdjustmentReasonCode">
            <b:Subject name="CAS09__AdjustmentAmount" />
            <b:Subject name="CAS10__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS09__AdjustmentAmount">
            <b:Subject name="CAS08__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS10__AdjustmentQuantity">
            <b:Subject name="CAS08__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS11__AdjustmentReasonCode">
            <b:Subject name="CAS12__AdjustmentAmount" />
            <b:Subject name="CAS13__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS12__AdjustmentAmount">
            <b:Subject name="CAS11__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS13__AdjustmentQuantity">
            <b:Subject name="CAS11__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS14__AdjustmentReasonCode">
            <b:Subject name="CAS15__AdjustmentAmount" />
            <b:Subject name="CAS16__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS15__AdjustmentAmount">
            <b:Subject name="CAS14__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS16__AdjustmentQuantity">
            <b:Subject name="CAS14__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_ListConditional" qualifier="CAS17__AdjustmentReasonCode">
            <b:Subject name="CAS18__AdjustmentAmount" />
            <b:Subject name="CAS19__AdjustmentQuantity" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS18__AdjustmentAmount">
            <b:Subject name="CAS17__AdjustmentReasonCode" />
          </b:Rule>
          <b:Rule subjects="X12ConditionDesignatorX_Conditional" qualifier="CAS19__AdjustmentQuantity">
            <b:Subject name="CAS17__AdjustmentReasonCode" />
          </b:Rule>
        </b:recordInfo>
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="CAS01__ClaimAdjustmentGroupCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1033" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="CO" />
              <xs:enumeration value="CR" />
              <xs:enumeration value="OA" />
              <xs:enumeration value="PI" />
              <xs:enumeration value="PR" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CAS02__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="CAS03__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS04__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="04">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS05__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="05">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS06__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="06">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS07__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="07">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS08__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="08">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS09__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="09">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS10__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="10">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS11__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="11">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS12__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="12">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS13__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="13">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS14__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="14">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS15__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="15">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS16__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="16">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS17__AdjustmentReasonCode">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" sequence_number="17">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:minLength value="1" />
              <xs:maxLength value="5" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS18__AdjustmentAmount">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="18" edi_datatype="R" justification="right" sequence_number="18">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
        <xs:element minOccurs="0" name="CAS19__AdjustmentQuantity">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo custom_maxlength="15" edi_datatype="R" justification="right" sequence_number="19">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_R" />
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="DTP_LineAdjudicationDate_TS837Q2_2430">
    <xs:annotation>
      <xs:appinfo>
        <b:recordInfo tag_name="DTP_LineAdjudicationDate_TS837Q2_2430" structure="delimited" delimiter_type="inherit_field" field_order="prefix" count_ignore="no" child_delimiter="default" notes="Line Adjudication Date" />
      </xs:appinfo>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DTP01__DateTimeQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" codelist="374" sequence_number="01">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="573" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP02__DateTimePeriodFormatQualifier">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="ID" justification="left" codelist="1250" sequence_number="02">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_ID">
              <xs:enumeration value="D8" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
        <xs:element name="DTP03__AdjudicationOrPaymentDate">
          <xs:annotation>
            <xs:appinfo>
              <b:fieldInfo edi_datatype="AN" justification="left" sequence_number="03">
              </b:fieldInfo>
            </xs:appinfo>
          </xs:annotation>
          <xs:simpleType>
            <xs:restriction base="X12_AN">
              <xs:minLength value="1" />
              <xs:maxLength value="35" />
            </xs:restriction>
          </xs:simpleType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="X12_N">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_R">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_AN">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_ID">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_DT">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_TM">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N0">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N1">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N2">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N3">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N4">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N5">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N6">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N7">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N8">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
  <xs:simpleType name="X12_N9">
    <xs:restriction base="xs:string" />
  </xs:simpleType>
</xs:schema>